package implementations;

import interfaces.IBoard;
import global.GlobalVars;

public class BoardImpl implements IBoard{

	private char [][] grid;
	
	
	public char[][] getGrid() {
		return grid;
	}


	public BoardImpl() {
		int gridXSize = GlobalVars.gridXSize;
		int gridYSize = GlobalVars.gridYSize;
		grid=new char [gridXSize][gridYSize];
		for(int i=0;i<gridXSize;i++){
			for(int j=0;j<gridYSize;j++){
				grid[i][j]='0';
			}
		}
	}


	@Override
	public void setGrid(char[][] newGrid) {
		grid=newGrid;
		
	}
}
